var user;
apiready = function() {
	$api.getUserInf(function(userInf) {
		if (userInf.status == '验证通过') {
			$("#verifyNoPass").remove();
			user = userInf;
		} else {
			$api.toastMsg("请先绑定业主信息");
		}
	});
};

function LoginVerify(pt) {
	if (user) {
		switch (pt) {
			case 'order':
				{
					$api.mOpenWin("usercenterMyOrder", "group/my_order.html");
					break;
				}
			case 'payment':
				{
					$api.mOpenWin("../html/property/payment", "");
					break;
				}
			case 'bill':
				{
					$api.mOpenWin("/wx/property/bill", "");
					break;
				}
			case 'changepw':
				{
					$api.mOpenWin('changepw', "chanpw.html");
					break;
				}
			case 'repair':
				{
					$api.mOpenWin("/wx/property/repair/index", "");
					break;
				}
			case 'repairall':
				{
					$api.mOpenWin("/wx/property/repair/list?status=all", "");
					break;
				}
			case 'notice':
				{
					$api.mOpenWin("/wx/property/notice", "");
					break;
				}
			case 'advise':
				{
					$api.mOpenWin("/wx/property/advise", "");
					break;
				}
			case 'contact':
				{
					$api.mOpenWin("/wx/property/contact", "");
					break;
				}
			case 'profile':
				{
					$api.mOpenWin('propertyProfile', "property/profile.html");
					break;
				}
			case 'owninfo':
				{
$api.mOpenWin('owninfo', "owninfo.html");
					break;
				}
		}
	} else {
		$api.toastMsg("请先绑定业主信息");
	}
}